import request from '@/utils/request'

/**
 * 获取权限列表
 */
export const getSystemMenuListApi = () => {
  return request({
    method: 'get',
    url: '/sys_menu/allData'
  })
}

/**
 * 删除
 */
export const delSystemMenuApi = id => {
  return request({
    method: 'get',
    url: `/sys_menu/del?id=${id}`
  })
}
